package com.ydw.profile_;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author HYL
 * @create 2017-07-06 下午3:42
 **/
public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.getEnvironment().setActiveProfiles("dev");
        context.register(Profile_Config.class);
        context.refresh();
        Demo bean = context.getBean(Demo.class);
        System.out.println(bean.getContent());
    }
}
